package com.hutao.subject.infra.basic.es;

import lombok.Data;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder;
import org.elasticsearch.search.sort.SortOrder;

@Data
public class EsSearchRequest {

    private BoolQueryBuilder boolQueryBuilder;

    private String[] fields;

    private int from;

    private int size;

    private Boolean needScroll;

    private Long minutes;

    private String sortName;

    private SortOrder sortOrder;

    private HighlightBuilder highlightBuilder;
}
